home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Die Speccy' 97
/
Die Speccy' 97.iso
/
amiga_system
/
the_aminet
/
util
/
cli
/
gengui21.lha
/
Gengui2.1
/
Examples
/
subgui.gui
< prev
next >
Wrap
Text File
|
1995-10-12
|
991b
|
51 lines
#c_source
#include <stdio.h>
int SubPrint(struct WinInfo *winfo,
struct NewGadget *ng,
struct GadInfo *gad,
int left, int top, int width, int height)
{
const char *modes[]={"MODE_NEW","MODE_RESIZE","MODE_REFRESH","MODE_STOP",
"MODE_FREE","MODE_BACKUP","MODE_RESTORE"};
printf("Mode: %s\n"
"Render: %s\n"
"Left: %d\n"
"Top: %d\n"
"Width: %d\n"
"Height: %d\n\n",modes[winfo->Mode],winfo->Render?"TRUE":"FALSE",
left,top,width,height);
return(0);
}
#end_source
projectname TestPro
vbox
plaintext
Text "This program prints every\n"
Text "call of the customfunction\n"
Text "to stdout including the mode\n"
Text "with which it was called"
FLAGS GG_HCentered,GG_VCentered
end
vbox
frame raised
custom
custom SubPrint
id 11
end
end
end